import request from '@/utils/request'

//获取小区
export const getCommunityListApi = (params) => {
  return request({
    url: '/community',
    method: 'get',
    params
  })
}

//获取所有角色
export const getRoleListApi = (params) => {
  return request({
    url: '/auth/role',
    method: 'get',
    params
  })
}

// 获取栋数
export function buildingListApi(data) {
  return request({
    url: '/house/building?community_code=' + data,
    method: 'get'
  })
}

// 获取成员列表
export function memberListApi() {
  return request({
    url: '/owners/member',
    method: 'get',
  })
}

// 获取资讯分类
export function cateListApi() {
  return request({
    url: '/content/cate',
    method: 'get',
  })
}



